/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopOrder.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_order")
public class ShopOrder {


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String orderSid;

	private java.util.Date enterDate;
	@Length(max=2)
	private java.lang.String state;
	@Length(max=50)
	private java.lang.String commoditySid;
	@Length(max=10)
	private java.lang.String freight;
	@Length(max=50)
	private java.lang.String enterUserid;
	@Length(max=50)
	private java.lang.String number;
	@Length(max=50)
	private java.lang.String waybillNumber;
	@Length(max=50)
	private java.lang.String prepayId;
	@Length(max=300)
	private java.lang.String title;

	private java.lang.Integer num;
	@Length(max=20)
	private java.lang.String price;
	@Length(max=50)
	private java.lang.String transactionId;
	@Length(max=50)
	private java.lang.String userid;

	private Integer remindShipment;

	private String description;
	private String name;
	private String fileId;
	//columns END

	@Column(name="file_id")
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	@Column(name="description")
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Column(name="name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ShopOrder(){
	}
	@Column(name="remind_shipment")
	public Integer getRemindShipment() {
		return remindShipment;
	}

	public void setRemindShipment(Integer remindShipment) {
		this.remindShipment = remindShipment;
	}

	public ShopOrder(
			java.lang.String orderSid
			){
		this.orderSid = orderSid;
	}



	public void setOrderSid(java.lang.String value) {
		this.orderSid = value;
	}

	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "uuid")
	@Column(name = "order_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getOrderSid() {
		return this.orderSid;
	}




	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}

	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}

	@Column(name = "state", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public java.lang.String getState() {
		return this.state;
	}

	public void setState(java.lang.String value) {
		this.state = value;
	}

	@Column(name = "commodity_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getCommoditySid() {
		return this.commoditySid;
	}

	public void setCommoditySid(java.lang.String value) {
		this.commoditySid = value;
	}

	@Column(name = "freight", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.String getFreight() {
		return this.freight;
	}

	public void setFreight(java.lang.String value) {
		this.freight = value;
	}

	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}

	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}

	@Column(name = "number", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getNumber() {
		return this.number;
	}

	public void setNumber(java.lang.String value) {
		this.number = value;
	}

	@Column(name = "waybill_number", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getWaybillNumber() {
		return this.waybillNumber;
	}

	public void setWaybillNumber(java.lang.String value) {
		this.waybillNumber = value;
	}

	@Column(name = "prepay_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getPrepayId() {
		return this.prepayId;
	}

	public void setPrepayId(java.lang.String value) {
		this.prepayId = value;
	}

	@Column(name = "title", unique = false, nullable = true, insertable = true, updatable = true, length = 300)
	public java.lang.String getTitle() {
		return this.title;
	}

	public void setTitle(java.lang.String value) {
		this.title = value;
	}

	@Column(name = "num", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getNum() {
		return this.num;
	}

	public void setNum(java.lang.Integer value) {
		this.num = value;
	}

	@Column(name = "price", unique = false, nullable = true, insertable = true, updatable = true, length = 20)
	public java.lang.String getPrice() {
		return this.price;
	}

	public void setPrice(java.lang.String value) {
		this.price = value;
	}

	@Column(name = "transaction_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getTransactionId() {
		return this.transactionId;
	}

	public void setTransactionId(java.lang.String value) {
		this.transactionId = value;
	}

	@Column(name = "userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUserid() {
		return this.userid;
	}

	public void setUserid(java.lang.String value) {
		this.userid = value;
	}
}

